const mongoose = require('mongoose');
mongoose.connect("mongodb://localhost/test")
mongoose.Promise = Promise;

//文章对象
const Article = mongoose.model("Article",{
    title: String,
    body: String,
    createTime: Date,
    updateTime: Date,
    accessNum: Number
})

module.exports = Article ;